﻿<div class="pad10">
	<div class="table-list" id="load_priv">	
		<form  method="post" action="__GROUP__/Disassistant/disSymptomaddedit_save" enctype="multipart/form-data" onsubmit="return validate(this)" >
			<table id="dnd-example" class="treeTable" width="100%" cellspacing="0">
				<tbody>
					<tr>
						<td class="alineright">APP名称:</td>
							<td>
								<select name="appname" onchange="changeState(this.value)">
									<option value="">默认</option>
									<?php 
										foreach ($appname as $key=>$val){
										if($val['id']==$detail['appname']){
										echo '<option value="'.$val['id'].'" selected="selected">'.$val['appname'].'</option>';
										}else{
										echo '<option value="'.$val['id'].'">'.$val['appname'].'</option>';
										}
										}
									?>
								</select>
							</td>
						</tr>
						<tr>
							<td class="alineright">内容:</td>
							<td><textarea id="symptom" name="symptom" style="width:260px;height:132px;"><?php if($detail['symptom']){ echo str_replace("|", "\r\n", $detail['symptom']);}?></textarea></td>
						</tr>
						<tr>
							<td class="alineright"></td>
							<td><input type="hidden" name="id" size="25" value="{$id}" /><input type="submit" value="确定" /> </td>
						</tr>
				</tbody>
			</table>
		</form>
	</div>
</div>
	<script type="text/javascript">
		 /**
		 * 验证
		 */
		function validate(form) {
			if (form.appname.value == "") {
				alert("请填写APP名称");
				form.appname.focus();
				return (false);
			}
			if (form.symptom.value == "") {
				alert("请填写内容");
				form.symptom.focus();
				return (false);
			}
			return true;
		}

	</script>